package com.smartlink.app.pojo;

/**
 * Created by Administrator on 2016/4/24.
 */
public class Info {
    private String citycode;// 城市编码
    private String windspeed; // 风速
    private String phenomena; // 天气状况
    private String airpressure; // 大气压
    private String humidity; // 湿度(%)
    private String updatetime; // 更新时间
    private String windpower; // 风力
    private String feelst; // 体感温度(℃)
    private String winddirect; // 风向
    private String weekofday; // 星期几，0 代表周日
    private String rain; // 降雨量(mm)
    private String temperature; // 气温(℃)

    public String getCitycode() {
        return citycode;
    }

    public void setCitycode(String citycode) {
        this.citycode = citycode;
    }

    public String getWindspeed() {
        return windspeed;
    }

    public void setWindspeed(String windspeed) {
        this.windspeed = windspeed;
    }

    public String getPhenomena() {
        return phenomena;
    }

    public void setPhenomena(String phenomena) {
        this.phenomena = phenomena;
    }

    public String getAirpressure() {
        return airpressure;
    }

    public void setAirpressure(String airpressure) {
        this.airpressure = airpressure;
    }

    public String getHumidity() {
        return humidity;
    }

    public void setHumidity(String humidity) {
        this.humidity = humidity;
    }

    public String getUpdatetime() {
        String[] time = updatetime.split(" ");
        return time[1];
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public String getWindpower() {
        return windpower;
    }

    public void setWindpower(String windpower) {
        this.windpower = windpower;
    }

    public String getFeelst() {
        return feelst;
    }

    public void setFeelst(String feelst) {
        this.feelst = feelst;
    }

    public String getWinddirect() {
        return winddirect;
    }

    public void setWinddirect(String winddirect) {
        this.winddirect = winddirect;
    }

    public String getWeekofday() {
        return weekofday;
    }

    public void setWeekofday(String weekofday) {
        this.weekofday = weekofday;
    }

    public String getRain() {
        return rain;
    }

    public void setRain(String rain) {
        this.rain = rain;
    }

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    @Override
    public String toString() {
        return "Info{" +
                "citycode='" + citycode + '\'' +
                ", windspeed='" + windspeed + '\'' +
                ", phenomena='" + phenomena + '\'' +
                ", airpressure='" + airpressure + '\'' +
                ", humidity='" + humidity + '\'' +
                ", updatetime='" + updatetime + '\'' +
                ", windpower='" + windpower + '\'' +
                ", feelst='" + feelst + '\'' +
                ", winddirect='" + winddirect + '\'' +
                ", weekofday='" + weekofday + '\'' +
                ", rain='" + rain + '\'' +
                ", temperature='" + temperature + '\'' +
                '}';
    }
}
